<?php get_header(); ?>
<!--end header-->
<div class="span-16" id="main-content">

    <h3 class="label-title">Group News</h3>


    <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
        <?php
            setPostViews($post->ID);
        ?>
        <div class="span-16 item">
            <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
            <?php include('post-meta.php'); ?>
            <div class="news-content">
                <?php the_content(); ?>
            </div>
        </div><!--end item-->
        <?php endwhile; else: echo "Chưa có nhà trọ được đăng!"; endif; ?>
    <?php wp_reset_query(); ?>

    <!--include bottom pagination-->
    <?php include ('bot-nav.php'); ?>

</div><!--end main-content-->
<!--begin sidebar-->
<?php get_sidebar(); ?>
<!--end sidebar-->
<!--begin footer-->
<?php get_footer(); ?>
<!--end footer-->